package com.lt.bcra.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 生理因素表
 * </p>
 *
 * @author LuoTian
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BcraPhysiologicalFactors对象", description="生理因素表")
public class BcraPhysiologicalFactors implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "生理因素表id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "月经初潮年龄")
    private String menarcheAge;

    @ApiModelProperty(value = "有过几个孩子")
    private Integer hasChildren;

    @ApiModelProperty(value = "头胎时候孩子几岁")
    private String firstChildAge;

    @ApiModelProperty(value = "您母乳喂养的累积时间为多少个月")
    private Integer breastMilkMouth;

    @ApiModelProperty(value = "您经历绝经了吗")
    @TableField("is_menopause")
    private String menopause;

    @ApiModelProperty(value = "绝经年龄")
    private String menopauseAge;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    @TableField(fill= FieldFill.INSERT)//创建时候自动填充时间
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")// 表示接收时间类型
    @TableField(fill= FieldFill.INSERT_UPDATE)//创建和修改时候自动填充时间
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "编辑者")
    private String editor;

    @ApiModelProperty(value = "编辑者主键")
    private Integer editoId;

    @ApiModelProperty(value = "对应模块标题")
    private String moduleTitle;

    @ApiModelProperty(value = "模块id")
    private Integer moduleId;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "is_deleted",fill= FieldFill.INSERT)//创建时候自动填充逻辑删除标识
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "问卷编号")
    private String questionnaireCode;


}
